Skip to content

fix: add --cloud-url flag to migrate command#70

Merged
guyb1 merged 1 commit into
mainfrom
fix/migrate-cloud-url
May 31, 2026
Merged

fix: add --cloud-url flag to migrate command#70
guyb1 merged 1 commit into
mainfrom
fix/migrate-cloud-url

Conversation

@guyb1
Copy link
Copy Markdown
Contributor

@guyb1 guyb1 commented May 31, 2026

Summary

  • Add optional --cloud-url flag to onecli migrate for non-production environments
  • When omitted, the server defaults to https://api.onecli.sh (production)
  • Pass cloudUrl in the export request body when provided

Companion to onecli-cloud#497.

Test plan

  • go build ./cmd/onecli compiles
  • onecli migrate --cloud-key <key> works without --cloud-url (production default)
  • onecli migrate --cloud-key <key> --cloud-url https://api-dev.onecli.sh targets dev
  • onecli migrate --help shows the new flag

🤖 Generated with Claude Code

The export service needs to know the cloud API URL to send data to.
Without this flag, it defaults to https://api.onecli.sh (production).
For non-production environments, the migration script passes
--cloud-url automatically.

Companion to onecli-cloud#497.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@guyb1 guyb1 merged commit 96ae126 into main May 31, 2026
2 checks passed
@guyb1 guyb1 deleted the fix/migrate-cloud-url branch May 31, 2026 13:11
@guyb1 guyb1 mentioned this pull request May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant